﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media;

namespace ZoneLinePacking.Converts {

    public class ConStateConvert : IValueConverter {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
            if (value is bool a && a) {
                return "#FF2DB84d";//new SolidColorBrush(Color.FromRgb(0xB0, 0xF0, 0x96));
            }
            return "#FFDB3340";//new SolidColorBrush(Color.FromRgb(0xfb, 0x56, 0x56));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
            throw new NotImplementedException();
        }

    }

}
